package com.适配器模式2.类适配器;

/**
 * 美国适配器
 */
public class MGMoviePlayerAdaper extends MeiGuoTranslate implements Player{

    //被适配的对象
    private Player targer;

    public MGMoviePlayerAdaper(Player targer) {
        this.targer = targer;
    }

    @Override
    public String play() {
        String content = targer.play();
        return translate(content);
    }
}
